<?php
/**
 * Created by PhpStorm.
 * User: wufubin
 * Date: 2017/1/2
 * Time: 16:59
 */

namespace Home\Controller;


use Common\Controller\HomeController;
use Common\Model\CategoryModel;
use Org\Util\Data;

class IndexController extends HomeController {
    public function index(){
        //定义头信息和js、css等
        $headConf = [
            'title'=>'商城首页',
            'js'=>['index']
        ];
        $this->assign('headConf',$headConf);
        $data = (new Data())->channelLevel((new CategoryModel())->select());
        $this->assign('data',$data);
        $this->display();
    }
}